﻿using LAVAA.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LAVAA.BL.Business
{
    public class RewardManager
    {
        private UnitOfWork _uow;
        public RewardManager(UnitOfWork uow)
        {
            this._uow = uow;
        }

        public IEnumerable<RewardType> getRewardTypes()
        {
            return _uow.RewardTypeRepository.GetAll();
        }

        public void AddRewardType(RewardType rewardType)
        {
            _uow.RewardTypeRepository.Add(rewardType);
        }

        public RewardType GetById(Guid id)
        {
            return _uow.RewardTypeRepository.GetById(id);
        }

        public void UpdateRewardType(RewardType reward)
        {
           _uow.RewardTypeRepository.Update(reward);
        }
    }
}
